package com.example.demowx.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;

/**
 * @author pengyifeng
 * @version 1.0.0
 * @ClassName TextMessage.java
 * @Description TODO
 * @createTime 2020年11月25日 10:55:00
 */
@XStreamAlias("xml")
public class TextMessage extends BaseMessage{

    @XStreamAlias("Content")
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public TextMessage(Map<String, String> requestMap, String content) {
        super(requestMap);
        // 设置文本消息的msgtype为text
        this.setMsgType("text");
        this.content = content;
    }
}
